package com.sk.bilibili.model.fragment.main.home.home;

import com.sk.api.annotations.Autowired;
import com.sk.bilibili.mapper.VideoSetMapper;
import com.sk.bilibili.model.BaseRefreshModel;
import com.sk.bilibili.utils.RequestUtils;
import com.sk.bilibili.view.fragment.main.home.home.HotFragment;

public class HotModel extends BaseRefreshModel<HotFragment> {

    @Autowired
    VideoSetMapper videoSetMapper;

    @Override
    public void refreshData() {
        RequestUtils.process(videoSetMapper.getRank(100,null), videoSets ->
                view.refreshSuccess(videoSets));
    }

}